import request from '@/utils/request.js';

// 封装一个关注作者的接口
export const attentions = (data) => {
    return request({
        url: '/v1_0/user/followings',
        method: 'post',
        data
    })
}
// 封装一个不再关注作者的接口
export const followings = (target) => {
    return request({
        url: '/v1_0/user/followings/' + target,
        method: 'delete',
    })
}